package com.kang.gaklibrary.config.value;

import com.kang.gaklibrary.config.annotation.YamlConfigFactory;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@PropertySource(value = {"classpath:/config/application.yaml"}, factory = YamlConfigFactory.class)
@ConfigurationProperties(prefix = "configvalue") // 注意：prefix 值为全小写，不能用驼峰
// 上面的使用要导入 SpringBoot 配置注解执行器的依赖
public class ConfigValue {
    private String planUrl;

    private String userIndexUrl;

    private String indexUrl;

    private String loginUrl;

    public String getPlanUrl(){
        return planUrl;
    }

    public void setPlanUrl(String planUrl){
        this.planUrl = planUrl;
    }

    public String getUserIndexUrl() {
        return userIndexUrl;
    }

    public void setUserIndexUrl(String userIndexUrl) {
        this.userIndexUrl = userIndexUrl;
    }

    public String getIndexUrl() {
        return indexUrl;
    }

    public String getLoginUrl() {
        return loginUrl;
    }

    public void setIndexUrl(String indexUrl) {
        this.indexUrl = indexUrl;
    }

    public void setLoginUrl(String loginUrl) {
        this.loginUrl = loginUrl;
    }
}
